//
//  orderHeaderView.m
//  YaoHeAPP
//
//  Created by xyh on 16/3/30.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "orderHeaderView.h"

@implementation orderHeaderView

-(id)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        
        UIView *bigView=[[UIView alloc]init];
        bigView.backgroundColor=[UIColor whiteColor];
        bigView.frame=CGRectMake(0, 10, self.frame.size.width, 30);
        [self addSubview:bigView];
        
        //订单名称和订单号
        self.companyorderlabel=[[UILabel alloc]initWithFrame:CGRectMake(10, 5, 165, 20)];
        self.companyorderlabel.textAlignment=NSTextAlignmentLeft;
        self.companyorderlabel.font=[UIFont systemFontOfSize:12];
        [bigView addSubview:self.companyorderlabel];
        
        //延期付款的图标
        self.yanqifukuanimg=[[UIImageView alloc]initWithFrame:CGRectMake(175, 6, 65, 18)];
        [bigView addSubview:self.yanqifukuanimg];
        
        //类型标签
        self.orderstaylabel=[[UILabel alloc]initWithFrame:CGRectMake(self.frame.size.width-10-10-60-5, 5, 60, 20)];
        self.orderstaylabel.textAlignment=NSTextAlignmentRight;
        self.orderstaylabel.font=[UIFont systemFontOfSize:12];
        self.orderstaylabel.textColor=[UIColor colorWithRed:251/255.0 green:87/255.0 blue:60/255.0  alpha:1];
        [bigView addSubview:self.orderstaylabel];
        
        
        self.jiantouImageV=[[UIImageView alloc]initWithFrame:CGRectMake(self.frame.size.width-10-10, 7.5, 10, 15)];
        self.jiantouImageV.image=[UIImage imageNamed:@"ic_arraw"];
        [bigView addSubview:self.jiantouImageV];

        
        //分割线
        UIView *vwimg=[[UIView alloc]init];
        vwimg.backgroundColor=[UIColor colorWithRed:242.f/255.f green:242.f/255.f blue:242.f/255.f alpha:1];
        vwimg.frame=CGRectMake(0, 40-1, self.frame.size.width, 1);
        [self addSubview:vwimg];
        
        
        
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
